package pagelib;
import com.thoughtworks.selenium.*;

import static org.junit.Assert.*;

public class MacysHome  {
	static Selenium bo= new DefaultSelenium("localhost", 4444, "*firefox", "http://www.Macys.com");
	
	
		
		public void clickAndWait(String element)
		{
		bo.click(element);
		bo.waitForPageToLoad("30000");
		}

		public void clickAndWait(String element, String timemillisec)
		{
		bo.click(element);
		bo.waitForPageToLoad(timemillisec);
		}
		
		public void verifyTitle(String title)
		{
			assertEquals(title,bo.getTitle());
		}
		
		public void closeBrowser()
		{
			bo.close();
		}
	}

	


